#!/bin/bash

# echo "copy /home/wj/program/ubuntu18.04.1.qcow2 to /home/wj/nfs/backup/vm/ubuntu18.04.1.qcow2"
# rsync -P --checksum /home/wj/program/ubuntu18.04.1.qcow2  /home/wj/nfs/backup/vm/ubuntu18.04.1.qcow2

echo "copy /var/lib/libvirt/images/fnos.qcow2 to /home/wj/nfs/backup/vm/fnos.qcow2"
rsync -P --checksum /var/lib/libvirt/images/ubuntu16.04.qcow2  /home/wj/nfs/backup/vm/ubuntu16.04.qcow2

# echo "copy /var/lib/libvirt/images/win11.qcow2 to /home/wj/nfs/backup/vm/win11.qcow2"
# rsync -P --checksum /var/lib/libvirt/images/win11.qcow2  /home/wj/nfs/backup/vm/win11.qcow2

# sudo chown wj:wj fnos.qcow2 ubuntu16.04.qcow2 win11.qcow2
# sudo chown libvirt-qemu:kvm fnos.qcow2 ubuntu16.04.qcow2 win11.qcow2
